class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string :name
      t.string :category_type
      t.integer :section_id
      t.integer :parent_category_id, :null => true
      t.integer :section_order
      t.integer :category_order
      t.string :category_code_name

      t.timestamps
    end
  end

  def self.down
    drop_table :categories
  end
end
